//
//  VCC.swift
//  TestPresentingViewController
//
//  Created by 李煜 on 2024/2/20.
//https://blog.csdn.net/fanjiarong_919/article/details/126139610?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-1-126139610-blog-48456177.235%5Ev43%5Epc_blog_bottom_relevance_base3&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-1-126139610-blog-48456177.235%5Ev43%5Epc_blog_bottom_relevance_base3&utm_relevant_index=2
//关于presentingViewController的测试
//

import UIKit
//入口->TabA->naviA(root:A)-container->naviB(root:B)-modal->C
//c.presentingViewController == TabA
class VCC: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()

        self.view.backgroundColor = .systemMint
    }

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        super.touchesBegan(touches, with: event)
        print("---VCC.presentingViewController---", self.presentingViewController as Any)
    }
}
